<?php
/**
 * $Id: each_module.php 235 2011-01-06 14:38:21Z bwanglei@gmail.com $
 */

/**
 * 博客作者
 */
function e_blogger($name,$info) {
	?><div class="modules" id="<?php echo $name;?>_w" title="<?php echo $name;?>">
		<div class="m_title">
			Module:<?php echo $info['title'];?>
			<div style="float:right;"><a href="javascript:del_module('<?php echo $name;?>');">删除</a></div>
			<span id="s_h_<?php echo $name;?>"><a href="javascript:;" onclick="sh_w_info('<?php echo $name;?>');">展开</a></span>
		</div>
		<div class="m_info" id="m_info_<?php echo $name;?>">
			<form action="" method="post" id="<?php echo $name;?>_form">
				标题：<input type="text" name="title" value="<?php echo $info['title'];?>" />
				<input type="hidden" name="m_type" value="<?php echo $name;?>" />
				<input type="button" onclick="u_info_widgets('<?php echo $name;?>_form', '<?php echo BLOG_URL;?>/admin/sidebar_module.php?action=uinfo');" value="提交" />
			</form>
		</div>
	</div><?php
}

/**
 * 后台现实标签模块
 */
function e_tag($name,$info) {
	?><div class="modules" id="<?php echo $name;?>_w" title="<?php echo $name;?>">
		<div class="m_title">
			Module:<?php echo $info['title'];?>
			<div style="float:right;"><a href="javascript:del_module('<?php echo $name;?>');">删除</a></div>
			<span id="s_h_<?php echo $name;?>"><a href="javascript:;" onclick="sh_w_info('<?php echo $name;?>');">展开</a></span>
		</div>
		<div class="m_info" id="m_info_<?php echo $name;?>">
			<form action="" method="post" id="<?php echo $name;?>_form">
				标题：<input type="text" name="title" value="<?php echo $info['title'];?>" />
				<input type="hidden" name="m_type" value="<?php echo $name;?>" />
				<input type="button" value="提交" onclick="u_info_widgets('<?php echo $name;?>_form', '<?php echo BLOG_URL;?>/admin/sidebar_module.php?action=uinfo');" />
			</form>
		</div>
	</div><?php
}

/**
 * 后台显示最新评论
 */
function e_newcomm($name,$info) {
	?><div class="modules" id="<?php echo $name;?>_w" title="<?php echo $name;?>">
		<div class="m_title">
			Module:<?php echo $info['title'];?>
			<div style="float:right"><a href="javascript:del_module('<?php echo $name;?>');">删除</a></div>
			<span id="s_h_<?php echo $name;?>"><a href="javascript:;" onclick="sh_w_info('<?php echo $name;?>');">展开</a></span>
		</div>
		<div class="m_info" id="m_info_<?php echo $name;?>">
			<form action="" method="post" id="<?php echo $name;?>_form">
				标题：<input type="text" name="title" value="<?php echo $info['title'];?>" />
				<input type="hidden" name="m_type" value="<?php echo $name;?>" />
				<input type="button" value="提交" onclick="u_info_widgets('<?php echo $name;?>_form', '<?php echo BLOG_URL;?>/admin/sidebar_module.php?action=uinfo');" />
			</form>
		</div>
	</div><?php
}

/**
 * 后台显示搜索
 */
function e_search($name,$info) {
	?><div class="modules" id="<?php echo $name;?>_w" title="<?php echo $name;?>">
		<div class="m_title">
			Module:<?php echo $info['title'];?>
			<div style="float:right"><a href="javascript:del_module('<?php echo $name;?>');">删除</a></div>
			<span id="s_h_<?php echo $name;?>"><a href="javascript:;" onclick="sh_w_info('<?php echo $name;?>');">展开</a></span>
		</div>
		<div class="m_info" id="m_info_<?php echo $name;?>">
			<form action="" method="post" id="<?php echo $name;?>_form">
				标题：<input type="text" name="title" value="<?php echo $info['title'];?>" />
				<input type="hidden" name="m_type" value="<?php echo $name;?>" />
				<input type="button" value="提交" onclick="u_info_widgets('<?php echo $name;?>_form', '<?php echo BLOG_URL;?>/admin/sidebar_module.php?action=uinfo');" />
			</form>
		</div>
	</div><?php
}

/**
 * 后台显示存档
 */
function e_archive($name,$info) {
	?><div class="modules" id="<?php echo $name;?>_w" title="<?php echo $name;?>">
		<div class="m_title">
			Module:<?php echo $info['title'];?>
			<div style="float:right"><a href="javascript:del_module('<?php echo $name;?>');">删除</a></div>
			<span id="s_h_<?php echo $name;?>"><a href="javascript:;" onclick="sh_w_info('<?php echo $name;?>');">展开</a></span>
		</div>
		<div class="m_info" id="m_info_<?php echo $name;?>">
			<form action="" method="post" id="<?php echo $name;?>_form">
				标题：<input type="text" name="title" value="<?php echo $info['title'];?>" />
				<input type="hidden" name="m_type" value="<?php echo $name;?>" />
				<input type="button" value="提交" onclick="u_info_widgets('<?php echo $name;?>_form', '<?php echo BLOG_URL;?>/admin/sidebar_module.php?action=uinfo');" />
			</form>
		</div>
	</div><?php
}

/**
 * 后台显示自定义文本
 */
function e_custom_text($name,$info) {
	?><div class="modules" id="<?php echo $name;?>_w" title="<?php echo $name;?>">
		<div class="m_title">
			Module:<?php echo $info['title'];?>
			<div style="float:right"><a href="javascript:del_module('<?php echo $name;?>');">删除</a></div>
			<span id="s_h_<?php echo $name;?>"><a href="javascript:;" onclick="sh_w_info('<?php echo $name;?>');">展开</a></span>
		</div>
		<div class="m_info" id="m_info_<?php echo $name;?>">
			<form action="" method="post" id="<?php echo $name;?>_form">
				标题：<input type="text" name="title" value="<?php echo $info['title'];?>" />
				<input type="hidden" name="m_type" value="<?php echo $name;?>" />
				<input type="button" value="提交" onclick="u_info_widgets('<?php echo $name;?>_form', '<?php echo BLOG_URL;?>/admin/sidebar_module.php?action=uinfo');" />
			</form>
		</div>
	</div><?php
}

/**
 * 后台显示链接
 */
function e_link($name,$info) {
	?><div class="modules" id="<?php echo $name;?>_w" title="<?php echo $name;?>">
		<div class="m_title">
			Module:<?php echo $info['title'];?>
			<div style="float:right"><a href="javascript:del_module('<?php echo $name;?>');">删除</a></div>
			<span id="s_h_<?php echo $name;?>"><a href="javascript:;" onclick="sh_w_info('<?php echo $name;?>');">展开</a></span>
		</div>
		<div class="m_info" id="m_info_<?php echo $name;?>">
			<form action="" method="post" id="<?php echo $name;?>_form">
				标题：<input type="text" name="title" value="<?php echo $info['title'];?>" />
				<input type="hidden" name="m_type" value="<?php echo $name;?>" />
				<input type="button" value="提交" onclick="u_info_widgets('<?php echo $name;?>_form', '<?php echo BLOG_URL;?>/admin/sidebar_module.php?action=uinfo');" />
			</form>
		</div>
	</div><?php
}

/**
 * 后台显示博客信息
 */
function e_bloginfo($name,$info) {
	?><div class="modules" id="<?php echo $name;?>_w" title="<?php echo $name;?>">
		<div class="m_title">
			Module:<?php echo $info['title'];?>
			<div style="float:right"><a href="javascript:del_module('<?php echo $name;?>');">删除</a></div>
			<span id="s_h_<?php echo $name;?>"><a href="javascript:;" onclick="sh_w_info('<?php echo $name;?>');">展开</a></span>
		</div>
		<div class="m_info" id="m_info_<?php echo $name;?>">
			<form action="" method="post" id="<?php echo $name;?>_form">
				标题：<input type="text" name="title" value="<?php echo $info['title'];?>" />
				<input type="hidden" name="m_type" value="<?php echo $name;?>" />
				<input type="button" value="提交" onclick="u_info_widgets('<?php echo $name;?>_form', '<?php echo BLOG_URL;?>/admin/sidebar_module.php?action=uinfo');" />
			</form>
		</div>
	</div><?php
}

/**
 * 后台显示管理
 */
function e_admin($name,$info) {
	?><div class="modules" id="<?php echo $name;?>_w" title="<?php echo $name;?>">
		<div class="m_title">
			Module:<?php echo $info['title'];?>
			<div style="float:right"><a href="javascript:del_module('<?php echo $name;?>');">删除</a></div>
			<span id="s_h_<?php echo $name;?>"><a href="javascript:;" onclick="sh_w_info('<?php echo $name;?>');">展开</a></span>
		</div>
		<div class="m_info" id="m_info_<?php echo $name;?>">
			<form action="" method="post" id="<?php echo $name;?>_form">
				标题：<input type="text" name="title" value="<?php echo $info['title'];?>" />
				<input type="hidden" name="m_type" value="<?php echo $name;?>" />
				<input type="button" value="提交" onclick="u_info_widgets('<?php echo $name;?>_form', '<?php echo BLOG_URL;?>/admin/sidebar_module.php?action=uinfo');" />
			</form>
		</div>
	</div><?php
}
